package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.JalonBiblioDao;
import com.aerotechnic.dao.implementation.JalonDao;
import com.aerotechnic.entities.Jalon;
import com.aerotechnic.entities.JalonBiblio;
import com.aerotechnic.entities.User;
import com.aerotechnic.service.interfaces.JalonBiblioBoIn;

@Service("JalonBiblioBo")
@Transactional
public class JalonBiblioBo implements JalonBiblioBoIn {
	@Autowired
	private JalonBiblioDao jalonBiblioDao;

	@Override
	public void save(JalonBiblio myEntity) {
		// TODO Auto-generated method stub
		jalonBiblioDao.save(myEntity);

	}

	@Override
	public void update(JalonBiblio myEntity) {
		// TODO Auto-generated method stub
		jalonBiblioDao.update(myEntity);

	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		jalonBiblioDao.delete(id);
	}

	@Override
	public JalonBiblio findByID(Long id) {
		// TODO Auto-generated method stub
		return jalonBiblioDao.findByID(id);
	}

	@Override
	public List<JalonBiblio> findAll() {
		// TODO Auto-generated method stub
		return jalonBiblioDao.findAll();
	}

	@Override
	public int countAllJalon() {
		// TODO Auto-generated method stub
		return jalonBiblioDao.countAllJalon();
	}

	@Override
	public List<JalonBiblio> find(int startIndex, int pageSize) {
		// TODO Auto-generated method stub
		return jalonBiblioDao.find(startIndex, pageSize);
	}

	@Override
	public List<JalonBiblio> getJalonBiblioByIds(String[] ids) {
		// TODO Auto-generated method stub
		return jalonBiblioDao.getJalonBiblioByIds(ids);
	}

}
